export function handleDeleteListPage(
  pagination: { current: number; pageSize: number },
  res: { total: number; items: string | any[] },
  setPagination: (params: any) => any
) {
  if (pagination.current * pagination.pageSize > res.total && !res.items?.length && pagination.current !== 1) {
    setPagination((prev: SetStatePage) => {
      prev.current = prev.current - 1
      return { ...prev }
    })
  }
}
